largest and smallest element in the list